package com.zmx.common.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 项目配置文件
 * @ClassName: ApplicationProperties
 * @Author zhaomxr
 * @Date 2021-11-16 17:04
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "spring")
public class ApplicationProperties {

    private String port;

    private Application application = new Application();

    private Jpa jpa = new Jpa();

    @Data
    public static class Application {
        private String name;
    }

    @Data
    public static class Jpa {
        private String database;
    }

}
